package com.ay.shardingshere.service;

import com.ay.shardingshere.entity.OrderInfo;
import com.ay.shardingshere.mapper.OrderInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: ay
 * @Date: 2021/6/29
 * @Description:
 **/
@Service
public class OrderInfoService {

    @Autowired
    private OrderInfoMapper orderInfoMapper;

    public void save(OrderInfo orderInfo){
        orderInfoMapper.save(orderInfo);
    }

    public void update(Long orderId){
        orderInfoMapper.update(orderId);
    }

    public void updateByAddrId(Long addressId){
        orderInfoMapper.updateByAddrId(addressId);
    }
}
